﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000EAF RID: 3759
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueCommonMiracle : IMessage<RogueCommonMiracle>, IMessage, IEquatable<RogueCommonMiracle>, IDeepCloneable<RogueCommonMiracle>, IBufferMessage
	{
		// Token: 0x17002FAD RID: 12205
		// (get) Token: 0x0600A86E RID: 43118 RVA: 0x001C6E79 File Offset: 0x001C5079
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueCommonMiracle> Parser
		{
			get
			{
				return RogueCommonMiracle._parser;
			}
		}

		// Token: 0x17002FAE RID: 12206
		// (get) Token: 0x0600A86F RID: 43119 RVA: 0x001C6E80 File Offset: 0x001C5080
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueCommonMiracleReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002FAF RID: 12207
		// (get) Token: 0x0600A870 RID: 43120 RVA: 0x001C6E92 File Offset: 0x001C5092
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueCommonMiracle.Descriptor;
			}
		}

		// Token: 0x0600A871 RID: 43121 RVA: 0x001C6E99 File Offset: 0x001C5099
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonMiracle()
		{
		}

		// Token: 0x0600A872 RID: 43122 RVA: 0x001C6EA1 File Offset: 0x001C50A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonMiracle(RogueCommonMiracle other) : this()
		{
			this.miracleInfo_ = ((other.miracleInfo_ != null) ? other.miracleInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A873 RID: 43123 RVA: 0x001C6ED6 File Offset: 0x001C50D6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonMiracle Clone()
		{
			return new RogueCommonMiracle(this);
		}

		// Token: 0x17002FB0 RID: 12208
		// (get) Token: 0x0600A874 RID: 43124 RVA: 0x001C6EDE File Offset: 0x001C50DE
		// (set) Token: 0x0600A875 RID: 43125 RVA: 0x001C6EE6 File Offset: 0x001C50E6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GameRogueMiracle MiracleInfo
		{
			get
			{
				return this.miracleInfo_;
			}
			set
			{
				this.miracleInfo_ = value;
			}
		}

		// Token: 0x0600A876 RID: 43126 RVA: 0x001C6EEF File Offset: 0x001C50EF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueCommonMiracle);
		}

		// Token: 0x0600A877 RID: 43127 RVA: 0x001C6EFD File Offset: 0x001C50FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueCommonMiracle other)
		{
			return other != null && (other == this || (object.Equals(this.MiracleInfo, other.MiracleInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A878 RID: 43128 RVA: 0x001C6F30 File Offset: 0x001C5130
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.miracleInfo_ != null)
			{
				num ^= this.MiracleInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A879 RID: 43129 RVA: 0x001C6F6C File Offset: 0x001C516C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A87A RID: 43130 RVA: 0x001C6F74 File Offset: 0x001C5174
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A87B RID: 43131 RVA: 0x001C6F7D File Offset: 0x001C517D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.miracleInfo_ != null)
			{
				output.WriteRawTag(114);
				output.WriteMessage(this.MiracleInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A87C RID: 43132 RVA: 0x001C6FB0 File Offset: 0x001C51B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.miracleInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.MiracleInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A87D RID: 43133 RVA: 0x001C6FF0 File Offset: 0x001C51F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueCommonMiracle other)
		{
			if (other == null)
			{
				return;
			}
			if (other.miracleInfo_ != null)
			{
				if (this.miracleInfo_ == null)
				{
					this.MiracleInfo = new GameRogueMiracle();
				}
				this.MiracleInfo.MergeFrom(other.MiracleInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A87E RID: 43134 RVA: 0x001C7044 File Offset: 0x001C5244
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A87F RID: 43135 RVA: 0x001C7050 File Offset: 0x001C5250
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 114U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.miracleInfo_ == null)
					{
						this.MiracleInfo = new GameRogueMiracle();
					}
					input.ReadMessage(this.MiracleInfo);
				}
			}
		}

		// Token: 0x0400446A RID: 17514
		private static readonly MessageParser<RogueCommonMiracle> _parser = new MessageParser<RogueCommonMiracle>(() => new RogueCommonMiracle());

		// Token: 0x0400446B RID: 17515
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400446C RID: 17516
		public const int MiracleInfoFieldNumber = 14;

		// Token: 0x0400446D RID: 17517
		private GameRogueMiracle miracleInfo_;
	}
}
